package com.holyant.goods.dto.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.QueryDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * 2021.10.27 仅提供给采购新增选择商品时的搜索条件
 */
@Data
@ApiModel("采购查询商品信息")
public class GdsGoodsSupplierPurQueryDto extends QueryDto {
    private static final long serialVersionUID = 1L;

    /** skuID */
    private Long skuId;

    /** sku编号 */
    @ApiModelProperty(value = "sku编号")
    private String code;

    /** sku编号 */
    @ApiModelProperty(value = "sku编号")
    private List<Map<String, String>> codes;

    /** sku名称 */
    @ApiModelProperty(value = "sku名称")
    private String name;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "失效日期")
    private LocalDate expireDate;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "失效日期大于")
    private LocalDate expireDateGreaterThen;

    @ApiModelProperty(value = "所属商品id")
    private Long goodsId;

    /** 状态  0 正常 1 停用 */
    @ApiModelProperty(value = "状态  0 正常 1 停用")
    private String status;

    /** 商品编码 */
    @ApiModelProperty(value = "商品编码")
    private String goodsCode;

    /** 商品名称 */
    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    /** 所属分类id */
    @ApiModelProperty(value = "所属分类id")
    private Long categoryId;


    /** 品牌id */
    @ApiModelProperty(value = "品牌id")
    private Long brandId;

    /** 计量单位id */
    @ApiModelProperty(value = "计量单位id")
    private Long unitId;

    private String categoryCode;

    /** 商品条码 */
    @ApiModelProperty(value = "商品条码")
    private String goodsBarcode;


    /** 商品条码 */
    @ApiModelProperty(value = "商品条码")
    private List<Map<String, String>> goodsBarcodes;

    /** 供应商ID */
    @ApiModelProperty(value = "供应商ID")
    private Long supplierId;

}
